/**
 * Main Style Sheet
 * Backend Module
 *
 * Copyright (c) 2013. by Way2CU
 * Author: Mladen Mijatov
 */

@import url(http://fonts.googleapis.com/css?family=Ubuntu:300,400,400italic,700);
@import url(http://fonts.googleapis.com/css?family=Ubuntu+Mono:400);

body {
	margin: 0px;
	padding: 0px;

	background-color: #d5d5d5;

	color: #333333;
	font-family: Ubuntu, sans-serif, Arial, Tahoma;
	font-size: 13px;
}

body.rtl {
	direction: rtl;
}

/**
 * Header
 */
header {
	display: block;
	padding: 10px;

	position: relative;

	background-color: #2c3e50;
}

div#logo {
	display: block;
	padding: 6px;
	padding-left: 75px;

	background-image: url(../images/logo.svg);
	background-position: left center;
	background-repeat: no-repeat;

	color: white;
	line-height: 100%;
	text-transform: uppercase;
}

body.rtl div#logo {
	padding: 6px;
	padding-right: 75px;
	background-position: right center;
}

div#logo img {
	display: block;
	height: 40px;
	margin-bottom: 5px;
}

/**
 * Container
 */
div#container {
	display: block;

	position: relative;

	background-image: url(../images/background.svg);
	background-repeat: no-repeat;
	background-position: calc(50% + 100px) center;
	background-size: auto 90%;

	overflow: hidden;
}

body.rtl div#container {
	background-position: calc(50% - 100px) center;
}

div#container.guest {
	background-position: center center;
}

/**
 * Footer
 */
footer {
	display: block;

	position: relative;

	border-top: 2px solid #2c3e50;
	background-color: #2c3e50;

	line-height: 100%;
}

footer:before {
	display: block;
	content: ' ';
	height: 100%;
	width: 200px;

	position: absolute;
	left: 0px;
	top: 0px;
	
	background-image: url(../images/logo_text_white.svg);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: auto 75%;

	opacity: 0.5;
}

body.rtl footer:before {
	left: auto;
	right: 0px;
}

/**
 * Common links menu
 */
nav#common {
	display: block;
	float: right;
}

body.rtl nav#common {
	float: left;
}

nav#common a {
	display: inline-block;
	padding: 10px;

	color: white;
	text-decoration: none;
}

nav#common a:hover {
	background-color: white;
	color: black;
}

/**
 * Window List
 */
ul#window_list {
	display: block;

	margin: 0px;
	padding: 0px;

	position: absolute;
	left: 201px;
	top: 0px;

	list-style-type: none;
	list-style-image: none;
}

body.rtl ul#window_list {
	left: auto;
	right: 201px;
}

ul#window_list li {
	display: inline-block;
	min-width: 100px;

	margin-right: 2px;
	padding: 10px;
	padding-left: 44px;

	position: relative;

	background-color: #b4b4b4;

	color: #333333;
	transition: all 0.3s;
}

body.rtl ul#window_list li {
	margin: 0px;
	margin-left: 2px;
	padding: 10px;
	padding-right: 44px;
}

ul#window_list li.active {
	background-color: white;
	color: #e74c3c;
}

ul#window_list li span {
	display: block;
	width: 24px;
	height: 24px;

	position: absolute;
	left: 10px;
	top: 50%;

	margin-top: -12px;

	background-image: url(../images/icons/16/modules.svg);
	background-position: 0px center;
	background-repeat: no-repeat;
	background-size: auto 24px;

	transition: all 0.3s;
}

body.rtl ul#window_list li span {
	left: auto;
	right: 10px;
}

ul#window_list li.active span {
	background-position: -24px center;
}

/**
 * Main Menu
 */
ul#navigation {
	display: block;
	width: 200px;
	height: 100%;

	margin: 0px;
	padding: 0px;

	position: absolute;
	left: 0px;
	top: 0px;

	border-right: 1px solid #595959;
	background-color: #b4b4b4;

	list-style-type: none;
	list-style-image: none;

	z-index: 2000;
}

body.rtl ul#navigation {
	left: auto;
	right: 0px;
	border-right: 0px;
	border-left: 1px solid #595959;
}

ul#navigation li {
	display: block;
	position: relative;
}

ul#navigation li a {
	display: block;
	min-height: 1em;

	padding: 10px;
	padding-left: 44px;

	position: relative;

	outline: none;

	color: #333333;
	font-size: 1.1em;
	font-weight: 300;
	text-decoration: none;

	cursor: pointer;
	transition: all 0.3s;
}

body.rtl ul#navigation li a {
	padding: 10px;
	padding-right: 44px;
}

ul#navigation li a span {
	display: block;
	width: 24px;
	height: 24px;
	
	position: absolute;
	left: 10px;
	top: 50%;

	margin-top: -12px;

	background-repeat: no-repeat;
	background-position: 0px 0px;
	background-size: auto 24px;

	font-size: 0px;
	transition: all 0.3s;
}

body.rtl ul#navigation li a span {
	left: auto;
	right: 10px;
}

ul#navigation li:hover > a span {
	background-position: -24px 0px;
}

ul#navigation > li:first-child {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

ul#navigation > li:first-child > a {
	font-weight: bold;
}

ul#navigation li:hover > a,
ul#navigation li a:hover {
	background-color: white;
	color: black;
}

ul#navigation li.separator {
	display: block;
	height: 0px;

	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

ul#navigation li > ul {
	display: block;
	width: 250px;

	visibility: hidden;
	opacity: 0;

	margin: 0px;
	padding: 0px;

	position: absolute;
	left: 95%;
	top: 0px;

	border: 1px solid #595959;
	background-color: #b4b4b4;
	box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.3);

	list-style-type: none;
	list-style-image: none;

	transition: 0.2s all;
	z-index: 1000;
}

body.rtl ul#navigation li > ul {
	left: auto;
	right: 95%;
	box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.3);
}

ul#navigation li:hover > ul {
	visibility: visible;
	opacity: 1;

	z-index: 2000;
}

ul#navigation li > ul > li.submenu > a:after {
	display: block;
	width: 0px;
	height: 0px;
	content: ' ';

	position: absolute;
	top: 50%;
	right: 7px;

	margin-top: -5px;

	border-left: 5px solid rgba(0, 0, 0, 0.3);
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;

	font-size: 0px;
}

body.rtl ul#navigation li > ul > li.submenu > a:after {
	right: auto;
	left: 7px;

	border-left: 0px;
	border-right: 5px solid rgba(0, 0, 0, 0.3);
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
}

/**
 * Language menu
 */
nav#language {
	display: block;

	position: absolute;
	right: 10px;
	top: 10px;

	border: 1px solid transparent;
	background-image: url(../images/language_menu.svg);
	background-position: left 10px;
	background-repeat: no-repeat;
	background-size: 16px 16px;

	z-index: 100;
}

body.rtl nav#language {
	right: auto;
	left: 10px;
}

nav#language:hover {
	border: 1px solid #595959;
	background-color: #b4b4b4;
	background-image: none;
}

nav#language a {
	display: block;
	max-height: 0px;

	padding: 0px;
	padding-left: 17px;
	padding-right: 17px;

	color: rgba(255, 255, 255, 0);
	text-decoration: none;

	transition: 0.3s all;
	overflow: hidden;
	text-align: center;
}

nav#language a:hover {
	background-color: white;
}

nav#language:hover a {
	max-height: 50px;

	padding: 10px;
	padding-left: 17px;
	padding-right: 17px;

	color: #333333;
}

nav#language a.active {
	max-height: 50px;

	padding: 10px;
	padding-left: 17px;
	padding-right: 17px;

	color: white;
}

nav#language:hover a.active {
	color: black;
}

/**
 * Scrollbars
 */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
	padding-top: 1px;
	background-color: rgba(100, 100, 100, 0.1);
}

::-webkit-scrollbar-thumb {
	padding: 1px;
	border-radius: 1px;
	background-color: rgba(100, 100, 100, 0.5);
}

::-webkit-scrollbar-thumb:hover {
	background-color: rgb(100, 100, 100);
}

/**
 * Default element behavior
 */
*:not(input):not(textarea) {
	-moz-user-drag: none;
	-webkit-user-drag: none;
	user-drag: none;
	
	-moz-user-select: none;
	-webkit-user-select: none;
	user-select: none;
	
	cursor: default !important;
}

/**
 * Backend window specific styles.
 */
div.window div.scrollable_list.modules div.list_item span.icon {
	display: inline-block;
	vertical-align: middle;
	width: 24px;
	height: 24px;

	margin-right: 5px;

	background-position: 0px 0px;
	background-repeat: no-repeat;
	background-size: 48px 24px;

	transition: 0.3s all;
}

body.rtl div.window div.scrollable_list.modules div.list_item span.icon {
	margin-right: 0px;
	margin-left: 5px;
}

div.window div.scrollable_list.modules div.list_item:hover span.icon {
	background-position: -24px 0px;
}
